<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 刘浩哲
  Date: 2022/11/29
  Time: 18:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="../static/css/dist/css/bootstrap.min.css">
</head>
<body>
<div class="form-group text-center">
    <form action="skuindex.do" class="form-inline">
        <input type="hidden" name="spu_id" value="${requestScope.spuid}">
        <label>副标题:</label>
        <input class="form-control" type="text" name="uname" value="${sessionScope.skuEntity.title}">
        <label>颜色:</label>
        <input class="form-control" type="text" name="color" value="${sessionScope.skuEntity.color}">
        <input class="form-control btn-info" type="submit" value="搜索">
    </form>
    <a class="btn btn-danger" href="qwe?spu=${requestScope.spuid}">新增</a>
</div>

<div>
    <table class="table table-bordered">
        <tr>
            <td>商品编号</td>
            <td>商品标题</td>
            <td>颜色</td>
            <td>规格</td>
            <td>销售价格</td>
            <td>是否下架</td>
            <td>添加时间</td>
            <td>修改时间</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${requestScope.sku}" var="list">
            <tr>
                <td>${list.sku_id}</td>
                <td>${list.title}</td>
                <td>${list.color}</td>
                <td>${list.specification}</td>
                <td>${list.prive}</td>
                <td>${list.valid}</td>
                <td>${list.addTime}</td>
                <td>${list.updateTime}</td>

                <td><a class="btn btn-info" href="skuupdate.shtml?sku_id=${list.sku_id}">编辑</a>

                </td>

            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
